/*
 * unit.h
 */

#ifndef UNIT_H_
#define UNIT_H_

/*
 * The unit struct contains the bare-minimum for unit statistics:
 * x/y/z coords and the unit name.
 * The unit struct also contains a void* field called "stats". This field should
 * be filled with a pointer to a struct created by the developer to house the
 * game-specific unit statistics. It is strongly recommended that the developer-
 * created stats struct contains a pointer back to the unit struct so that the
 * unit struct and the stats struct can be used interchangeably.
 */

typedef struct {
    unsigned long x;
    unsigned long y;
    unsigned long z;
    const char *name;
    void *stats;
} unit;

#endif
